package com.ruoyi.web.controller.system;

import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.system.domain.SysMessage;
import com.ruoyi.system.domain.SysNotice;
import com.ruoyi.system.service.ISysMessageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 消息通知 信息操作处理
 *
 * @author ruoyi
 */
@RestController
@RequestMapping("/system/message")
public class SysMessageController extends BaseController
{
    @Autowired
    private ISysMessageService messageService;

    /**
     * 获取消息通知信息数据
     */
    @GetMapping("/getMessageNotices")
    public AjaxResult getMessageNotices(SysMessage message)
    {
        List<SysMessage> list = messageService.selMessageNotices(message);
        return success(list);
    }
}
